#include<iostream>
using namespace std;

//class Son1      size(16) :
//	+-- -
//	0 | +-- - (base class Baba1)
//	0      | | a
//	| +-- -
//	4 | +-- - (base class Baba2)
//	4      | | b
//	| +-- -
//	8 | c
//	12 | d
//	+ -- -


class Baba1 {
public:
	int a;
	Baba1() {
		a = 100;
	}
};

class Baba2 {
public:
	int a;
	Baba2() {
		a = 200;
	}
};

class Son1 :public Baba1, public Baba2 {
public:
	int c;
	int d;
	Son1() {
		c = 300;
		d = 400;
	}
};


void main30() {
	
	Son1 s;
	cout << sizeof(s) << endl;
	cout << s.Baba1::a << endl;
}